﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ComputerShopE3.Models.NGUOI_DUNG>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>User</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Danh sách User</h2>

    <table>
        <tr>
            <th></th>
            <th>
                Tên đăng nhập
            </th>
                        <th>
                Tên
            </th>
            <th>
                Email
            </th>
            <th>
                Giới tính
            </th>
            <th>
                Điện thoại
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Chỉnh sửa", "Edit", new {  id=item.id })%> |
                <%= Html.ActionLink("Chi tiết", "Details", new {  id=item.id })%>
            </td>
            <td>
                <%= Html.Encode(item.TenDangNhap) %>
            </td>
            <td>
                <%= Html.Encode(item.Ten) %>
            </td>
            <td>
                <%= Html.Encode(item.Email) %>
            </td>            
            <td>
                <%= Html.Encode(item.GioiTinh) %>
            </td>            
            <td>
                <%= Html.Encode(item.DienThoai) %>
            </td>
         </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Tạo mới", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PersonalMenu" runat="server">
</asp:Content>

